<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" type="image/ico" th:href="@{/images/favicon.ico}">
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <!--<link rel="stylesheet" type="text/css" th:href="@{/bootstrap-3.3.0/css/bootstrap.min.css}">-->
    <!--<link rel="stylesheet" type="text/css" th:href="@{/fontawesome-4.2.0/css/font-awesome.min.css}">-->
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}">
    <title>门店管理列表</title>
</head>
<body class="layui-tab-content">
<div class="layui-card layui-card-body">
<div class="layui-form toolbar" id="queryTools">
    <div class="layui-form-item">
        <label class="layui-form-label">门店名称:</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="name" placeholder="请填写门店名称">
        </div>
        <label class="layui-form-label">门店电话:</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="tel" placeholder="请填写门店电话">
        </div>
        <label class="layui-form-label">门店地址:</label>
        <div class="layui-input-inline">
            <select id="proName" name="provinceName"  lay-filter="selPro"></select>
        </div>
        <div class="layui-input-inline">
            <select id="cityName" name="cityName"  lay-filter="test"></select>
        </div>
        <button class="layui-btn" id="btnSearch">查询</button>
        <button class="layui-btn" id="resetSearch">重置</button>
        <button class="layui-btn" id="btnAdd">新增</button>
    </div>
</div>
<table class="layui-hide" id="storeTable" lay-filter="storeTable"></table>
</div>
<!--新增修改界面-->
<form class="layui-form" id="editForm" lay-filter="editForm" style="display:none;padding-top:10px">
    <input type="hidden" name="id">
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="layui-tip-required">*</i>门店名称</label>
        <div class="layui-input-block" style="width: 60%;">
            <input type="text" name="name" lay-verify="required|nameLen" autocomplete="off" placeholder="请输入标题"
                   class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="layui-tip-required">*</i>门店电话</label>
        <div class="layui-input-block" style="width: 60%;">
            <input type="text" name="tel" lay-verify="required|tel|telLen" autocomplete="off" placeholder="请输入电话"
                   class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="layui-tip-required">*</i>门店地址</label>
        <div class="layui-input-block" style="width: 60%;">
            <div class="layui-input-inline" style="width: 50%;margin-right: 0px;">
                <select name="proName"  lay-verify="required" lay-filter="selPro"></select>
            </div>
            <div class="layui-input-inline" style="width: 49%;margin-right: 0px;">
                <select name="cityName" lay-verify="required"></select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-block" style="width: 60%;">
            <div class="layui-input-inline" style="width:100%;">
                <textarea name="addr" lay-verify="required|addrLen" autocomplete="off" placeholder="请输入详情地址" class="layui-textarea">
                </textarea>
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <button id="saveRecord" class="layui-btn" lay-submit lay-filter="editRecord">保存</button>
    </div>
</form>
<!--列操作-->
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<!--按钮操作-->
<script type="text/html" id="tableToolbar">
    <div class="layui-btn-container">
    </div>
</script>

<script type="text/javascript" th:src="@{/js/plugins/jquery-1.11.3.min.js}"></script>
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src='@{/js/province.js}'></script>
<script type="text/javascript" th:src="@{/js/modules/store/list.js}"></script>
</body>
</html>